<template>
	<view>
		<uni-forms style="display:flex;justify-content: center;" ref="form" >
			<uni-forms-item label="" name="">
				<input type="text" v-model="value" placeholder="请输入要设置的IP">
			</uni-forms-item>
		</uni-forms>
		<button @click="save" style="width: 95%;">点击进行保存</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				value:''
			}
		},
		methods: {
			save(){
				uni.setStorage({
					key:'ip',
					data:this.value,
					success() {
						uni.showToast({
							icon:"success",
							title:"保存数据成功"
						})
						uni.navigateTo({
							url:"/pages/introducer/introducer"
						})
						
					}
				})
			}
			
		}
	}
</script>

<style>

</style>
